import { Component } from 'react'

class Twoc extends Component {
    constructor() {
        super()
        this.state = {}
    }
    cf = () => {
        this.props.chuanfu('意不意外，开不开心')
    }
    render() {
        return (
            <div>
                <h2>{this.props.ca}</h2>
                <button onClick={this.cf} >点击传值</button>
            </div>

        )
    }
}

export default Twoc